Timm Bäder [Sat, 10 Sep 2016 16:10:11 +0000 (18:10 +0200)]
gentypefuncs.py: Use python3
Tim-Philipp Müller [Sat, 10 Sep 2016 11:10:59 +0000 (12:10 +0100)]
meson: replace gentypefuncs.d with python script
Timm Bäder [Sat, 10 Sep 2016 04:58:16 +0000 (06:58 +0200)]
gtk major version
Timm Bäder [Fri, 9 Sep 2016 20:02:21 +0000 (22:02 +0200)]
meson: Use xrandr
Timm Bäder [Tue, 23 Aug 2016 06:21:54 +0000 (08:21 +0200)]
meson: make gtk buildable
x11 only
Timm Bäder [Mon, 22 Aug 2016 19:26:38 +0000 (21:26 +0200)]
meson: Build gtk marshallers
And fix libgtk_dep/libgdk_dep to link_with the shared lib
Timm Bäder [Sun, 21 Aug 2016 16:01:14 +0000 (18:01 +0200)]
meson: Add unit test files
Timm Bäder [Sun, 21 Aug 2016 16:00:19 +0000 (18:00 +0200)]
gtk: Generate gresources file
Timm Bäder [Sun, 21 Aug 2016 15:16:03 +0000 (17:16 +0200)]
meson: Add options for x/wayland/broadway backends
Timm Bäder [Sun, 21 Aug 2016 14:00:37 +0000 (16:00 +0200)]
Meson build v2
Emmanuele Bassi [Mon, 15 Aug 2016 08:03:57 +0000 (09:03 +0100)]
Add Meson build files
Original work by: Jussi Pakkanen <jpakkane@gmail.com>
https://bugzilla.gnome.org/show_bug.cgi?id=769881
Emmanuele Bassi [Tue, 18 Apr 2017 14:14:35 +0000 (15:14 +0100)]
gsk: Include the private header
Both gskprivate.c and gskvulkanrenderer.c call `gsk_ensure_resources`
but fail in clude `gskprivate.h`, where the function is declared.
Emmanuele Bassi [Tue, 18 Apr 2017 17:31:27 +0000 (18:31 +0100)]
Remove gdkkeysyms-compat.h
The compatibility header was needed after GTK+ 3.0 renamed the key
symbols from `GDK_*` to `GDK_KEY_*` to avoid collisions.
Timm Bäder [Sat, 24 Sep 2016 07:36:32 +0000 (09:36 +0200)]
examples/drawing: Don't call gtk_main_quit
This is a GtkApplication so it will do the right thing when closing the
window.
Timm Bäder [Sun, 21 Aug 2016 13:43:29 +0000 (15:43 +0200)]
fallback-c89: Include config.h
It holds all the HAVE_<func> definitions.
Emmanuele Bassi [Fri, 28 Apr 2017 14:07:04 +0000 (15:07 +0100)]
gdk: Remove GdkX11DisplayManager from the build
We don't instantiate it, and we don't use it any more.
Matthias Clasen [Tue, 2 May 2017 20:16:05 +0000 (16:16 -0400)]
Remove the gdk backend API too
The GTK+ level API for this is already gone.
Daniel Boles [Tue, 2 May 2017 11:22:20 +0000 (12:22 +0100)]
Scale: Improve documentation of set_has_origin()
Properly format the property name, and avoid saying scale so many times.
Daniel Boles [Tue, 2 May 2017 11:18:26 +0000 (12:18 +0100)]
Scale: Explain how to round value when !draw-value
Scale:digits is (now, again) ineffective if Scale:draw-value is FALSE.
To get rounding in that case, the base Range:round-digits must be used.
Emmanuele Bassi [Tue, 2 May 2017 11:36:15 +0000 (12:36 +0100)]
Recover assets rendering script
It was unintentionally removed by commit
f6cbd076.
Timm Bäder [Sun, 30 Apr 2017 19:57:15 +0000 (21:57 +0200)]
widget-factory: Fix listbox row alignment
Timm Bäder [Sun, 30 Apr 2017 19:53:05 +0000 (21:53 +0200)]
Chain up in size-allocate implementations
Otherwise we're not setting an allocation at all.
Matthias Clasen [Mon, 1 May 2017 16:57:05 +0000 (12:57 -0400)]
Remove GtkWindow::hide-titlebar-when-maximized
This was only every implemented under X11, and with CSD,
this is clearly in the application realm. We should not
pretend that we can support it on the toolkit level.
https://bugzilla.gnome.org/show_bug.cgi?id=775061
Timm Bäder [Sun, 30 Apr 2017 18:21:39 +0000 (20:21 +0200)]
widget: remove double assignment
We never read the value we assign here.
Timm Bäder [Sun, 30 Apr 2017 18:20:58 +0000 (20:20 +0200)]
placesview: Remove duplicate GtkMountOperation assignment
we assign a new mount operation a few lines later again.
Timm Bäder [Sun, 30 Apr 2017 18:19:56 +0000 (20:19 +0200)]
levelbar: Don't allocate 0 blocks
Could result in a division by zero later on and doesn't make a lot of
sense anyway.
Timm Bäder [Sun, 30 Apr 2017 17:48:39 +0000 (19:48 +0200)]
gtksettings: Remove unnecessary deprecation guards
Nothing between them is deprecated.
Timm Bäder [Sun, 30 Apr 2017 16:38:10 +0000 (18:38 +0200)]
widget: Fold queue_resize_on_widget into its only caller
Kukuh Syafaat [Sat, 29 Apr 2017 02:08:22 +0000 (02:08 +0000)]
Update Indonesian translation
Emmanuele Bassi [Fri, 28 Apr 2017 22:10:51 +0000 (23:10 +0100)]
wayland: Annotate the log_handler function
The log_handler() internal function is a candidate for the GCC format
attribute for printf-like functions.
Emmanuele Bassi [Fri, 28 Apr 2017 21:56:29 +0000 (22:56 +0100)]
wayland: Add declaration of private get_type() function
Emmanuele Bassi [Fri, 28 Apr 2017 21:55:47 +0000 (22:55 +0100)]
gdk: Make more private functions static
These symbols are not exported and are local to their compilation unit.
Emmanuele Bassi [Fri, 28 Apr 2017 21:47:29 +0000 (22:47 +0100)]
wayland: Mark private function as static
Emmanuele Bassi [Fri, 28 Apr 2017 21:21:19 +0000 (22:21 +0100)]
wayland: Mark private function as static
The selection_lookup_offer_by_atom() function is private to the file and
not used elsewhere.
Emmanuele Bassi [Fri, 28 Apr 2017 20:50:41 +0000 (21:50 +0100)]
build: Don't include the marshallers header file
We used to inject the inclusion of the generated header file into the
generated body of the marshallers source code in order to avoid compiler
warnings about missing prototypes. The glib-genmarshal utility has been
fixed in GLib to include the prototype in the generated source, so now
we're going to trip -Werror=redundant-decls.
Timm Bäder [Fri, 28 Apr 2017 15:11:52 +0000 (17:11 +0200)]
migration guide: Extend GtkBox child property section
Mention the removed expand and fill child properties as well.
Olivier Fourdan [Wed, 26 Apr 2017 13:35:42 +0000 (15:35 +0200)]
wayland: make key event log more explicit
With Wayland, GDK_DEBUG=events would log key events but not explicitly
state whether the event is a key press or release, or if it's
originating from a key repeat.
Add some more verbosity to make sure these informations are logged on
key delivery when GDK_DEBUG is set.
https://bugzilla.gnome.org/show_bug.cgi?id=781767
Timm Bäder [Fri, 28 Apr 2017 09:26:25 +0000 (11:26 +0200)]
frame: Properly initialize clip
GtkCssGadget initializes the content clip to {0, 0, 0, 0}, so we can't
just union the child clip with it.
Timm Bäder [Fri, 28 Apr 2017 09:25:21 +0000 (11:25 +0200)]
grid: Remove unnecessary NULL checks
The minimum and natural pointers passed to measure are never NULL and
that's the only place where we call gtk_grid_get_size_for_size.
Timm Bäder [Thu, 27 Apr 2017 15:54:49 +0000 (17:54 +0200)]
GtkGestureMultiPress: Remove superfluous NULL check
The rect parameter in gtk_gesture_multi_press_set_area is annotated as
nullable and the code handles the rect==NULL case, but the
g_return_if_fail kept that case from ever happening.
Timm Bäder [Thu, 27 Apr 2017 15:52:46 +0000 (17:52 +0200)]
label: Remove dead ternary operator
Timm Bäder [Thu, 27 Apr 2017 13:45:08 +0000 (15:45 +0200)]
headerbar: Compute clip directly
Timm Bäder [Thu, 27 Apr 2017 13:29:13 +0000 (15:29 +0200)]
Fix gdk_rectangle_union calls
Turns out that the destination is the last parameter, not the first one.
This fixes the flickering in the first page of the widget-factory when
using the expander on page 2.
Timm Bäder [Thu, 27 Apr 2017 05:40:14 +0000 (07:40 +0200)]
button: Compute clip directly
Timm Bäder [Wed, 26 Apr 2017 11:43:30 +0000 (13:43 +0200)]
filechooserwidget: Remove always-false error case
_gtk_search_engine_new never returns NULL, it always returns a valid
GObject with at least the simple search engine initialized.
Timm Bäder [Wed, 26 Apr 2017 09:37:58 +0000 (11:37 +0200)]
sidebarrow: Remove useless size group
Nice try, but size groups don't work with invisible widgets anyway.
Invisible widgets request 0×0.
Florian Müllner [Sat, 22 Apr 2017 17:50:11 +0000 (19:50 +0200)]
gdk: Relicense translate_wm_button_layout_to_gtk()
It is generally a good idea to license individual files under the
same terms as the project license (in particular when the mismatch
boils down to having copied the wrong license header), so relicense
the code under the LGPL.
https://bugzilla.gnome.org/show_bug.cgi?id=781422
Piotr Drąg [Wed, 26 Apr 2017 17:44:06 +0000 (19:44 +0200)]
Update Polish translation
Emmanuele Bassi [Wed, 26 Apr 2017 16:28:14 +0000 (17:28 +0100)]
gsk: Mark finalize() implementation as static
Emmanuele Bassi [Wed, 26 Apr 2017 16:27:24 +0000 (17:27 +0100)]
gsk: Mark internal symbol as static
Nothing uses this function outside of GskVulkaneRenderPass.
Emmanuele Bassi [Wed, 26 Apr 2017 16:23:12 +0000 (17:23 +0100)]
gsk: Mark internal symbols as static
These symbols are not used anywhere outside of GskVulkanImage.
Emmanuele Bassi [Wed, 26 Apr 2017 16:21:07 +0000 (17:21 +0100)]
gsk: Mark private symbol as static
The ellipsis_contains_point() function is not used anywhere else.
Stas Solovey [Wed, 26 Apr 2017 14:44:34 +0000 (14:44 +0000)]
Update Russian translation
(cherry picked from commit
edf00914e531f36d611b613b22b8d6ccb72e893a)
Daniel Boles [Wed, 26 Apr 2017 11:18:12 +0000 (12:18 +0100)]
Scale: Fix documentation of digits per last revert
Revert doc changes that were for the behavioural change just reverted.
Add a clarifying note that, under the original behaviour, :digits only
rounds the Adjustment if :draw-value is TRUE at the time of the change.
https://bugzilla.gnome.org/show_bug.cgi?id=781605
https://bugzilla.gnome.org/show_bug.cgi?id=358970
Matthias Clasen [Wed, 26 Apr 2017 10:18:09 +0000 (06:18 -0400)]
Revert "Scale: Always sync ::digits to Range::round-digits"
This reverts commit
4a6bd134bdc192b4830a1c6228e27332d4629418.
This change in behavior broke various things.
https://bugzilla.gnome.org/show_bug.cgi?id=781605
Timm Bäder [Wed, 26 Apr 2017 09:07:40 +0000 (11:07 +0200)]
GskRoundedRect: Include private header file
So we don't have implementations without previous prototypes.
Timm Bäder [Wed, 26 Apr 2017 09:06:55 +0000 (11:06 +0200)]
GskRenderNode: Fix set_scaling_filters function name
The implementation sed _filters while the prototype used _filter.
Timm Bäder [Wed, 26 Apr 2017 09:06:32 +0000 (11:06 +0200)]
GskRenderNode: add missing prototype
Timm Bäder [Tue, 25 Apr 2017 18:55:56 +0000 (20:55 +0200)]
reftests: Remove reference to deleted files
Timm Bäder [Tue, 25 Apr 2017 16:47:42 +0000 (18:47 +0200)]
testdnd2: Don't pass a toplevel to gtk_drag_set_icon_widget
Timm Bäder [Tue, 25 Apr 2017 15:26:49 +0000 (17:26 +0200)]
label: Remove angle property
Timm Bäder [Tue, 25 Apr 2017 13:45:37 +0000 (15:45 +0200)]
label: Move if statement where it makes sense
In the else branch of the if statement before this one, we're assigning
*smallest = *widest anyway, so this if statement is never true. Move it
to the if block before instead, where it can apply.
Timm Bäder [Tue, 25 Apr 2017 13:43:10 +0000 (15:43 +0200)]
label: Remove useless if statements
We never pass nullable pointers into get_size_for_allocation.
Timm Bäder [Tue, 25 Apr 2017 13:39:46 +0000 (15:39 +0200)]
label: Remove useless if statement
The if before this one already makes sure priv->wrap is TRUE.
Timm Bäder [Tue, 25 Apr 2017 13:22:52 +0000 (15:22 +0200)]
gtkmain: Fix code example
gtk_init doesn't take parameters anymore
Timm Bäder [Tue, 25 Apr 2017 09:57:12 +0000 (11:57 +0200)]
label: Don't use gtk_widget_set_simple_clip
The clip returned by gtk_css_gadget_allocate already includes the
box-shadow size and we manually care about the text-shadow size.
Timm Bäder [Tue, 25 Apr 2017 06:11:51 +0000 (08:11 +0200)]
frame: Compute clip directly
Timm Bäder [Mon, 24 Apr 2017 21:11:15 +0000 (23:11 +0200)]
listbox: Compute clips directly
Timm Bäder [Mon, 24 Apr 2017 17:07:59 +0000 (19:07 +0200)]
gtkwidget: Queue a resize on the parent when unparenting
gtk_widget_set_parent (via gtk_widget_reposition_after) will queue a
resize on the parent widget automatically when adding a child widget, so
unparent should do the same
Timm Bäder [Mon, 24 Apr 2017 17:07:15 +0000 (19:07 +0200)]
widget: Fix set_parent/unparent docs to not mention GtkContainer
They can both be used by non-container widgets these days.
Timm Bäder [Mon, 24 Apr 2017 16:23:53 +0000 (18:23 +0200)]
grid: Compute clip directly
Instead of iterating over the children again in
gtk_container_get_children_clip
Timm Bäder [Mon, 24 Apr 2017 16:12:03 +0000 (18:12 +0200)]
container: Use gtk_container_forall less
Just iterate over the child widgets directly and produce a much nicer
stack trace when debugging.
Timm Bäder [Sun, 23 Apr 2017 14:32:28 +0000 (16:32 +0200)]
box: Compute clips directly
Instead of using _gtk_widget_set_simple_clip *and*
gtk_container_get_children_clip
Timm Bäder [Sun, 23 Apr 2017 12:36:36 +0000 (14:36 +0200)]
testsuite: Add widget ordering test case
Timm Bäder [Sun, 23 Apr 2017 07:30:17 +0000 (09:30 +0200)]
box: Remove center child
Timm Bäder [Sat, 22 Apr 2017 20:16:27 +0000 (22:16 +0200)]
container: Remove include_internals parameter from forall
with include_internals=TRUE, this is the same as the (still private)
gtk_widget_forall, or just using the children/sibling accessors in a
loop.
Timm Bäder [Sat, 22 Apr 2017 18:18:17 +0000 (20:18 +0200)]
actionbar: Add explicit center widget
The center widget in GtkBox was only introduced to use it in
GtkActionBar. However, the implementation there is much more complex
than it needs to be, so move the center widget into GtkActionBar instead
and later remove it from GtkBox.
Timm Bäder [Fri, 21 Apr 2017 20:34:36 +0000 (22:34 +0200)]
box: Remove fill child property
GtkWidget:halign and GtkWidget:valign are sufficient
Timm Bäder [Fri, 21 Apr 2017 16:59:59 +0000 (18:59 +0200)]
box: Remove expand child property
GtkWidget already has hexpand/vexpand properties.
Timm Bäder [Fri, 7 Apr 2017 18:14:26 +0000 (20:14 +0200)]
expander: Use widgets for title box and arrow
Timm Bäder [Fri, 7 Apr 2017 18:13:42 +0000 (20:13 +0200)]
window: Make sure the decoration node stays at the beginning
Otherwise, the gtk_widget_set_parent call might add the widget node of
the child before the decoration node.
Timm Bäder [Fri, 7 Apr 2017 08:01:23 +0000 (10:01 +0200)]
levelbar: Use widgets for all blocks
This replaces all internal gadgets with widgets.
Remaining problem: "block" nodes have a min-width of 32px in Adwaita,
but when allocated in continuous mode, the levelbar doesn't care and
underallocates them.
Timm Bäder [Thu, 6 Apr 2017 17:22:14 +0000 (19:22 +0200)]
progressbar: Use widgets for all subgadgets
A GtkLabel for the possible text node and two GtkGizmos for the
trough/progress gadgets.
Timm Bäder [Thu, 6 Apr 2017 17:17:29 +0000 (19:17 +0200)]
Add GtkGizmo
GtkGizmo is the easiest possible widget to implement. It does nothing
except give its creator a way to control measure/size-allocate/snapshot,
so it can be used in a variety of use cases.
Timm Bäder [Sun, 23 Apr 2017 06:39:15 +0000 (08:39 +0200)]
overlay: Ensure proper child widget order
Make sure the main widget stays below all the overlay children.
Timm Bäder [Mon, 24 Apr 2017 19:47:24 +0000 (21:47 +0200)]
treeview: insert the column button css node in the right place
Insert the css node before setting a parent widget on the column button,
so the gtk_widget_set_parent won't attempt to add the css node as child
of the parent widget css node.
Timm Bäder [Wed, 5 Apr 2017 17:57:11 +0000 (19:57 +0200)]
widget: Add gtk_widget_insert_before/after
To insert a widget into the widget tree before or after a child widget
of the soon-to-be parent.
Timm Bäder [Sun, 9 Apr 2017 09:54:02 +0000 (11:54 +0200)]
gdk: Add 3.92 version macros
Timm Bäder [Tue, 25 Apr 2017 18:16:59 +0000 (20:16 +0200)]
Bump version to 3.91.0
So we can use GDK_AVAILABLE_IN_3_92 without getting warnings
Timm Bäder [Fri, 7 Apr 2017 17:02:35 +0000 (19:02 +0200)]
listbox: Properly remove placeholders
Timm Bäder [Fri, 7 Apr 2017 16:57:15 +0000 (18:57 +0200)]
widget-factory: Add dummy listbox placeholder
It doesn't do anything and isn't visible anyway, but it tests that
adding and removing placeholders works
Daniel Boles [Tue, 25 Apr 2017 09:57:55 +0000 (10:57 +0100)]
ProgressBar: Update node summary per last commit
The node named "progress" is a child of the node named "trough".
Timm Bäder [Sat, 22 Apr 2017 04:35:54 +0000 (06:35 +0200)]
progressbar: Fix position of text node in CSS docs
The text node has always been a child node of the progressbar node, not
the trough node, but the docs claimed otherwise.
Timm Bäder [Mon, 24 Apr 2017 14:22:32 +0000 (16:22 +0200)]
spinbutton: Add undershoot nodes to CSS docs
Timm Bäder [Mon, 24 Apr 2017 14:22:26 +0000 (16:22 +0200)]
spinbutton: Remove an unused define
Timm Bäder [Mon, 24 Apr 2017 13:12:23 +0000 (15:12 +0200)]
window: Expand CSS node docs
Timm Bäder [Fri, 21 Apr 2017 13:37:37 +0000 (15:37 +0200)]
filechooserbutton: Show/hide appropriate child
Timm Bäder [Mon, 24 Apr 2017 10:00:32 +0000 (12:00 +0200)]
paned: Fix typo
Timm Bäder [Sat, 22 Apr 2017 10:16:03 +0000 (12:16 +0200)]
testboxcss: Fix custom CSS
remove engine: parameter and add units to values
Timm Bäder [Wed, 5 Apr 2017 17:58:35 +0000 (19:58 +0200)]
gtk4-sections: Add missing GtkWidget child/sibling accessors